<%@ page language="java" pageEncoding="UTF-8"%>
<%
//Resource resource = request.getAttribute(Requ)
%>
<html>
	<head>
	<head>
		<title>stage</title>
		<%@ include file="/WEB-INF/jsp/stage_resources.jsp"%>
		<style type="text/css">
			.target {
				padding: 3px;
				background: #dfe8f6;
			}
		</style>
		<script type="text/javascript">
			Ext.onReady(function () {
				// 控制目标页面
				var targetIframe = $("#targetIframe")[0];
				var document = targetIframe.contentDocument || targetIframe.contentWindow.document;
				//document.body.style.background = "#f8f8f8";
				// todo........
				
				// ....
				setTimeout(function(){
					Ext.get('loading').remove();
					Ext.get('loading-mask').fadeOut({remove:true});
				}, 1);
			});
		</script>
	</head>
	<body>
		<div id="loading-mask"></div>
		<div id="loading" style="border: #ccc solid 1px;">
			<div class="loading-indicator"
				style="background: url('${$res_path_resources}/images/loading.gif') no-repeat">
				正在加载页面,请您稍后......
			</div>
		</div>
		
		<div class="target">
			<script type="text/javascript">
				document.write(K.wrapIframe({url : "${requestResource.resUrl}", id : "targetIframe"}))
			</script>
		</div>
	</body>
</html>

